package com.hakim.wfb.customer.service.convert.user;

import com.hakim.wfb.bean.User;
import com.hakim.wfb.customer.result.user.UserView;


public class UserViewDtv {

    public static UserView convert(User user) {
        UserView view = new UserView();

        view.setUserId(user.getTid());
        view.setUserCode(user.getUserCode());
        view.setUserPhone(user.getUserPhone());
        view.setUserName(user.getUserName());
        view.setUserOrg(user.getUserOrg());

        view.setUserLevel(user.getUserLevel());
        view.setUserActStatus(user.getUserActStatus());
        view.setUserActTime(user.getUserActTime());
        view.setUserRegTime(user.getUserRegTime());
        view.setUserIdAuth(user.getUserIdAuth());
        view.setUserPacketBound(user.getUserPacketBound());
        view.setUserTradepwdSet(user.getUserTradepwdSet());
        view.setUserParent(user.getUserParent());
        return view;
    }
}
